<?php

include_once '../InfoManager/InfoParking.php';
include_once '../AtacAPI/Auth.php';
include_once '../InfoManager/Constants.php';

$im = new InfoParking();
$parks = $im->getParks();
if (count($parks) == 0)
	return;
$ac_parking_old = new ACParking($parks);
$ac_parking_old->getParkStatus();
foreach($parks as $park)
{
	echo "name: ".$park->getParkName()." posti: ".$park->getposti()." disp: ".$park->getDisp()."<br>";
	
}

$ac_parking_new = new ACParking($parks);
$ac_parking_new->getParkStatus_NEW();
foreach($parks as $park)
{
	echo "name: ".$park->getParkName()." posti: ".$park->getposti()." disp: ".$park->getDisp()."<br>";
}
/*
$out_news_new = $news->getNews_NEWS();
$out_news_old = $news->getNews();
if (count($out_news_old) == count($out_news_new))
{
	for($i = 0; $i < count($out_news_new); $i++)
	{
		$o_old = $out_news_old[$i];
		$o_new = $out_news_new[$i];
		if (trim($o_old['title']) != trim($o_new['title']))
		{
			echo "Diversi titoli<br>";
			echo "NEW: ".$o_new['title']."<br>";
			echo "OLD: ".$o_old['title']."<br>";
		}
	}
}
*/
?>
